/******************************************************************************
 * @File name   :      ICardDefinitionDao.java
 *
 * @Author      :      JIZHANGS
 *
 * @Date        :      Aug 11, 2015
 *
 * @Copyright Notice: 
 * Copyright (c) 2015 Capgemini, Inc. All  Rights Reserved.
 * This software is published under the terms of the Capgemini Software
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 * 
 * 
 * ----------------------------------------------------------------------------
 * Date                   Who         Version        Comments
 * Aug 11, 2015 6:01:44 PM        JIZHANGS     1.0            Initial Version
 *****************************************************************************/
package com.cap.bts.crmdp.dealer.card.dao;

import java.util.List;

import com.cap.bts.crmdp.dealer.card.domain.CardDefinition;
import com.cap.bts.crmdp.dealer.card.domain.CardGeneration;
import com.cap.bts.framework.common.dao.IBaseDao;
import com.cap.bts.framework.common.exception.AppException;

/**
 *
 */
public interface ICardCreateDao extends IBaseDao<CardGeneration, Long> {
    
    String getNextCardNumFrom(CardDefinition dto) throws AppException;
    
    String getCheckBit(CardDefinition dto) throws AppException;
    
    String getActiveCode(CardDefinition dto) throws AppException;
    
    String getNextCardNumTo(CardDefinition cd,int quantity) throws AppException;
    
    List<CardGeneration> findAllCardGenerationList() throws AppException;
    
    Boolean generateCard(String generateInfo)  throws AppException;
    
}
